package com.dty.dtycompute.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tdata_ht_otherenergy
 */
@Data
public class TdataHtOtherenergy implements Serializable {
    /**
     * 
     */
    private String id;

    /**
     * 
     */
    private String meterid;

    /**
     * 
     */
    private String departid;

    /**
     * 
     */
    private String measureid;

    /**
     * 
     */
    private String energycategoryid;

    /**
     * 
     */
    private String energyitemid;

    /**
     * 
     */
    private String meterno;

    /**
     * 
     */
    private Date dt;

    /**
     * 
     */
    private String val1;

    /**
     * 
     */
    private String val2;

    /**
     * 
     */
    private String val3;

    /**
     * 
     */
    private String val4;

    /**
     * 
     */
    private String val5;

    /**
     * 
     */
    private String val6;

    /**
     * 
     */
    private String val7;

    /**
     * 
     */
    private String val8;

    /**
     * 
     */
    private String val9;

    /**
     * 
     */
    private String val10;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TdataHtOtherenergy other = (TdataHtOtherenergy) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMeterid() == null ? other.getMeterid() == null : this.getMeterid().equals(other.getMeterid()))
            && (this.getDepartid() == null ? other.getDepartid() == null : this.getDepartid().equals(other.getDepartid()))
            && (this.getMeasureid() == null ? other.getMeasureid() == null : this.getMeasureid().equals(other.getMeasureid()))
            && (this.getEnergycategoryid() == null ? other.getEnergycategoryid() == null : this.getEnergycategoryid().equals(other.getEnergycategoryid()))
            && (this.getEnergyitemid() == null ? other.getEnergyitemid() == null : this.getEnergyitemid().equals(other.getEnergyitemid()))
            && (this.getMeterno() == null ? other.getMeterno() == null : this.getMeterno().equals(other.getMeterno()))
            && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt()))
            && (this.getVal1() == null ? other.getVal1() == null : this.getVal1().equals(other.getVal1()))
            && (this.getVal2() == null ? other.getVal2() == null : this.getVal2().equals(other.getVal2()))
            && (this.getVal3() == null ? other.getVal3() == null : this.getVal3().equals(other.getVal3()))
            && (this.getVal4() == null ? other.getVal4() == null : this.getVal4().equals(other.getVal4()))
            && (this.getVal5() == null ? other.getVal5() == null : this.getVal5().equals(other.getVal5()))
            && (this.getVal6() == null ? other.getVal6() == null : this.getVal6().equals(other.getVal6()))
            && (this.getVal7() == null ? other.getVal7() == null : this.getVal7().equals(other.getVal7()))
            && (this.getVal8() == null ? other.getVal8() == null : this.getVal8().equals(other.getVal8()))
            && (this.getVal9() == null ? other.getVal9() == null : this.getVal9().equals(other.getVal9()))
            && (this.getVal10() == null ? other.getVal10() == null : this.getVal10().equals(other.getVal10()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMeterid() == null) ? 0 : getMeterid().hashCode());
        result = prime * result + ((getDepartid() == null) ? 0 : getDepartid().hashCode());
        result = prime * result + ((getMeasureid() == null) ? 0 : getMeasureid().hashCode());
        result = prime * result + ((getEnergycategoryid() == null) ? 0 : getEnergycategoryid().hashCode());
        result = prime * result + ((getEnergyitemid() == null) ? 0 : getEnergyitemid().hashCode());
        result = prime * result + ((getMeterno() == null) ? 0 : getMeterno().hashCode());
        result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode());
        result = prime * result + ((getVal1() == null) ? 0 : getVal1().hashCode());
        result = prime * result + ((getVal2() == null) ? 0 : getVal2().hashCode());
        result = prime * result + ((getVal3() == null) ? 0 : getVal3().hashCode());
        result = prime * result + ((getVal4() == null) ? 0 : getVal4().hashCode());
        result = prime * result + ((getVal5() == null) ? 0 : getVal5().hashCode());
        result = prime * result + ((getVal6() == null) ? 0 : getVal6().hashCode());
        result = prime * result + ((getVal7() == null) ? 0 : getVal7().hashCode());
        result = prime * result + ((getVal8() == null) ? 0 : getVal8().hashCode());
        result = prime * result + ((getVal9() == null) ? 0 : getVal9().hashCode());
        result = prime * result + ((getVal10() == null) ? 0 : getVal10().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", meterid=").append(meterid);
        sb.append(", departid=").append(departid);
        sb.append(", measureid=").append(measureid);
        sb.append(", energycategoryid=").append(energycategoryid);
        sb.append(", energyitemid=").append(energyitemid);
        sb.append(", meterno=").append(meterno);
        sb.append(", dt=").append(dt);
        sb.append(", val1=").append(val1);
        sb.append(", val2=").append(val2);
        sb.append(", val3=").append(val3);
        sb.append(", val4=").append(val4);
        sb.append(", val5=").append(val5);
        sb.append(", val6=").append(val6);
        sb.append(", val7=").append(val7);
        sb.append(", val8=").append(val8);
        sb.append(", val9=").append(val9);
        sb.append(", val10=").append(val10);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}